package org.apache.flink.runtime.rest.messages;

import org.apache.flink.runtime.rest.handler.cluster.ConsumerManagerCustomLogHandler;

/**
 * Parameters used by {@link ResourceProviderCustomLogHandler} and {@link ConsumerManagerCustomLogHandler}.
 */
public class LogFileNamePathParameter extends MessagePathParameter<String> {

    public static final String KEY = "filename";

    public LogFileNamePathParameter() {
        super(KEY);
    }

    @Override
    protected String convertFromString(String value) {
        return value;
    }

    @Override
    protected String convertToString(String value) {
        return value;
    }

    @Override
    public String getDescription() {
        return "String value that identifies the file name from which to read.";
    }
}
